package edu.uoc.tdp.pac4.common;

import javax.swing.JOptionPane;

import edu.uoc.tdp.pac4.i18n.*;


/**
 * Clase de excepciones personalizadas
 */
public class GestorExceptions {

    private static final long serialVersionUID = 1L;
    /**
     * Constructor 
     */
    public GestorExceptions() {
    	
    }

    
    public static void sentException(String err){
    	JOptionPane.showMessageDialog(null, err, "Este es un JOptionPane", JOptionPane.ERROR_MESSAGE);    	
    }
    
    public static final String ERR_URL = TDSLanguageUtils.getMessage("ERR_URL");
    public static final String ERR_REMOTO = TDSLanguageUtils.getMessage("ERR_REMOTO");
    public static final String ERR_REG_RMI = TDSLanguageUtils.getMessage("ERR_REG_RMI");
    public static final String ERR_FILE_NOT_FOUND = TDSLanguageUtils.getMessage("ERR_FILE_NOT_FOUND");
    public static final String ERR_NOT_BOUND = TDSLanguageUtils.getMessage("ERR_NOT_BOUND");
    public static final String ERR_NOT_POSTGRES = TDSLanguageUtils.getMessage("ERR_NOT_POSTGRES");
    public static final String ERR_READ_PROPERTIES = TDSLanguageUtils.getMessage("ERR_READ_PROPERTIES");
    public static final String ERR_CONNECTION = TDSLanguageUtils.getMessage("ERR_CONNECTION");
    public static final String ERR_SQL = TDSLanguageUtils.getMessage("ERR_SQL");
    public static final String ERR_BD_STOP = TDSLanguageUtils.getMessage("ERR_BD_STOP");
    public static final String ERR_CLS = TDSLanguageUtils.getMessage("ERR_DRV");
    public static final String ERR_NOT_EST = TDSLanguageUtils.getMessage("ERR_NOT_EST");
    public static final String ERR_INSERT = TDSLanguageUtils.getMessage("ERR_INSERT");
    public static final String ERR_PARSE = TDSLanguageUtils.getMessage("ERR_PARSE");
    public static final String ERR_OBJ_RMI = TDSLanguageUtils.getMessage("ERR_OBJ_RMI");
    public static final String ERR_UNKNOWN = TDSLanguageUtils.getMessage("ERR_UNKNOWN");
    public static final String ERR_NO_COD = TDSLanguageUtils.getMessage("ERR_NO_COD");
    public static final String ERR_DESC = TDSLanguageUtils.getMessage("ERR_DESC");
    public static final String ERR_STATEMENT = TDSLanguageUtils.getMessage("ERR_STATEMENT");
    public static final String ERR_DESC_STAT = TDSLanguageUtils.getMessage("ERR_DESC_STAT");
    public static final String ERR_ROLLBACK = TDSLanguageUtils.getMessage("ERR_ROLLBACK");
    public static final String ERR_DESC_EXEC = TDSLanguageUtils.getMessage("ERR_ROLLBACK");
    
}
